import request from "@/utils/request";

export function getExamList() {
    return request({
        url: `/exam/list`,
        method: 'get',
    })
}

export function addExam(exam) {
    return request({
        url: `/exam/add`,
        method: 'post',
        data: exam
    })
}

export function updateExam(exam) {
    return request({
        url: `/exam/update`,
        method: 'put',
        data: exam
    })
}

export function getHw() {
    return request({
        url: `/exam/hw`,
        method: 'get',
    })
}
